package com.jifeng.br.pjj.bookreader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jifeng.br.pjj.bookreader.entity.BookEntity;

import java.util.List;

/**
 * <p>
 * 图书表 服务类
 * </p>
 *
 * @author 机蜂
 * @since 2023-07-11
 */
public interface BookService extends IService<BookEntity> {
    IPage<BookEntity> getPage(int page, int limit, BookEntity book);

    void update(BookEntity book);

    void delete(int bookId);

    List<BookEntity> getHotList();

    IPage<BookEntity> getBookByCid(int page, int limit, int categoryId);

    IPage<BookEntity> getBookByRecord(int page, int limit, int userId);

    IPage<BookEntity> getBookByLike(int page, int limit, int userId);
}
